﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace Giraffe.Client.ConversationModule.Converters
{
    //todo test
    [ValueConversion(typeof(DateTime), typeof(string))]
    public class ShortTimeConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((DateTime)value).ToShortTimeString();
        }

        public object ConvertBack(object value, Type typeTarget, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}
